package com.example.common.exception.errcode;

/**
 * 登录模块的错误码
 */
public enum ErrCodeLogin implements ErrCode {
    IPHONE_NOT_REGISTERED_ERROR(10001, "手机号未注册"),
    IPHONE_REGISTERED_ERROR(10002, "手机号已注册"),
    EMAIL_NOT_REGISTERED_ERROR(10003, "邮箱未注册"),
    EMAIL_REGISTERED_ERROR(10004, "邮箱已注册"),
    ACCOUNT_NOT_REGISTERED_ERROR(10005, "账号未注册"),
    ACCOUNT_REGISTERED_ERROR(10006, "账号已注册"),

    ACCOUNT_OR_PASSWORD_ERROR_EXCEPTION(10004,"账号或密码错误"),
    ADMIN_CANNOT_DELETE_EXCEPTION(10005,"系统用户不可以删除"),
    ;

    private int code;
    private String msg;
    ;

    ErrCodeLogin(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
